home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_1199 / 1610 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  873 b 

  1. Date: Mon, 20 Jun 1994 15:04:19 -0700
  2. From: ersmith@netcom.com (Eric R. Smith)
  3. Message-Id: <199406202204.PAA11723@netcom7.netcom.com>
  4. To: benni@phil15.uni-sb.de, itschere@techfak.uni-bielefeld.de
  5. Subject: Re: bug in mintlib44's access() function
  6.  
  7. Actually, if access() *did* use effective uid's it would have no point, since
  8. then it would always only tell you whether or not an open() call will fail;
  9. this is redundant, since (as you pointed out) you can always just try to
  10. open the file and see if it fails.
  11.  
  12. As Sun defines it, though, access serves a useful purpose: it allows
  13. setuid and setgid programs to determine whether the user running them
  14. should be allowed acces to a file. For example, if a program is setuid
  15. root, it can always read any file; but if it is run by user "guest",
  16. then perhaps there are some files that it may not want to allow the user
  17. access to.
  18.